package com.example.tijianserver.mapper;

import com.example.tijianserver.pojo.CiReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CiReportMapper {
    int deleteByPrimaryKey(Integer cirId);

    int insert(CiReport record);

    int insertSelective(CiReport record);

    CiReport selectByPrimaryKey(Integer cirId);

    int updateByPrimaryKeySelective(CiReport record);

    int updateByPrimaryKey(CiReport record);

    @Select("select cirId, ciId, ciName, orderId from CiReport where orderId=#{orderId}")
    public List<CiReport> selectByOrderId(Integer orderId);

    //    医生端
    @Select("select count(*) from cireport where orderId=#{orderId}")
    public int getCiReportByOrderId(Integer orderId);
    public int saveCiReport(List<CiReport> list);

    @Select("select * from cireport where orderId=#{orderId}")
    public List<CiReport> listCiReport(Integer orderId);

}